# Game issue

**URL:** <https://forum.makecode.com/t/game-issue/18368>\
**Category:** Help\
**Tags:** game\
**Created:** [March 9, 2023, 4:26pm UTC](https://forum.makecode.com/t/game-issue/18368 "2023-03-09T16:26:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drojal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/drojal/32/7377_2.png) [@Drojal](https://forum.makecode.com/u/Drojal)\
**Post date:** [March 9, 2023, 4:26pm UTC](https://forum.makecode.com/t/game-issue/18368/1 "2023-03-09T16:26:43Z")

</div>

Hello! I want to create a maze where the player can get points by gathering loot or losing points when he/she touches lava. If you see in my code below, you will notice that I have placed invisible sprites over the lava tiles, that have the same image. After that I wanted to spread them across the map, everywhere that there is a lava tile, but I am not sure if I did it correctly. There are 15 Lava1 tiles and 10 Lava2 tiles. Also, you can get maximum 33 points from the loot. So, 33-15-10=8. I want to end the game with losing, if the player touches 8 lava tiles in a row, while his/her score is 0. If you try to do it, it does crashes or ends the game if you touch 2-3 lava tiles.

> **[Maze](https://arcade.makecode.com/S93498-97152-03304-12367)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.
