# Help with student's game

**URL:** <https://forum.makecode.com/t/help-with-students-game/13537>\
**Category:** Help\
**Created:** [May 12, 2022, 4:19pm UTC](https://forum.makecode.com/t/help-with-students-game/13537 "2022-05-12T16:19:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaturn68](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jaturn68/32/2180_2.png) [@jaturn68](https://forum.makecode.com/u/jaturn68)\
**Post date:** [May 12, 2022, 4:19pm UTC](https://forum.makecode.com/t/help-with-students-game/13537/1 "2022-05-12T16:19:39Z")

</div>

> **[jungle matt](https://arcade.makecode.com/12806-35505-31564-66529)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Hi there, this student’s game is supposed to add 1 life when player overlaps the mushroom kind of life but instead it adds a random number of lives each time. I’ve tried adding in a pause block which seemed to work the first time, but when the game ends and restarts it’s back to adding a random number of lives. Any help n this is much appreciated.

---

<div class="post-metadata">

**Author:** ![AqeeAqee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/aqeeaqee/32/5424_2.png) [@AqeeAqee](https://forum.makecode.com/u/AqeeAqee)\
**Post date:** [May 13, 2022, 9:10pm UTC](https://forum.makecode.com/t/help-with-students-game/13537/2 "2022-05-13T21:10:44Z")

</div>

Hi @jaturn68 ! Try following please:

change “place mushroom on top of random tile”:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/f/f32452cf2dc0627e48fb3a04bca0afc4595183ad.png)  
to “place mushroom on top of value”:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/8/815a59ff81b7c30bfba90f435777627fcea4113d.png)

The random life number comes from multi mushroom were placed in the same place.  
The random placing may not cover the current “value” (red tile). And there are many red tiles in your map, so some mushroom could be choosen multi times, while some never.

Hope it helps. 🙂

---

<div class="post-metadata">

**Author:** ![jaturn68](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jaturn68/32/2180_2.png) [@jaturn68](https://forum.makecode.com/u/jaturn68)\
**Post date:** [May 16, 2022, 4:03pm UTC](https://forum.makecode.com/t/help-with-students-game/13537/3 "2022-05-16T16:03:39Z")

</div>

That was it… Thank you so much!!!
