# Help with puzzle game

**URL:** <https://forum.makecode.com/t/help-with-puzzle-game/45894>\
**Category:** Help\
**Tags:** game\
**Created:** [September 14, 2026, 11:49pm UTC](https://forum.makecode.com/t/help-with-puzzle-game/45894 "2026-09-14T23:49:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cybercube](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cybercube/32/34628_2.png) [@Cybercube](https://forum.makecode.com/u/Cybercube)\
**Post date:** [September 14, 2026, 11:49pm UTC](https://forum.makecode.com/t/help-with-puzzle-game/45894/1 "2026-09-14T23:49:20Z")

</div>

> **[Match The Cards](https://arcade.makecode.com/S08538-89513-03792-04706)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

So, I was working on this game, but there a bug where if you clicked the piece then it won’t say it’s a sprite

---

<div class="post-metadata">

**Author:** ![CodaKnight](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codaknight/32/33491_2.png) [@CodaKnight](https://forum.makecode.com/u/CodaKnight)\
**Post date:** [September 15, 2026, 3:15am UTC](https://forum.makecode.com/t/help-with-puzzle-game/45894/2 "2026-09-15T03:15:07Z")

</div>

I found the original cause of the Play/Settings crash while debugging the mouse system. The old mouse handler was treating every left-click as a puzzle-piece click, which could pass an undefined sprite into `Show_puzzle()`. There was also an off-by-one issue in the puzzle-piece loop.

I’ve already fixed those issues. The mouse system now needs to distinguish between **menu button clicks** and **puzzle-piece clicks** , so clicking Play starts the game, clicking Settings opens the settings screen, and puzzle clicks continue going through the existing puzzle system.

> **[Match The Cards](https://arcade.makecode.com/S60282-59248-59600-96818)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Also your art skills are insane!
