# I need help optimising my code or another solution

**URL:** <https://forum.makecode.com/t/i-need-help-optimising-my-code-or-another-solution/3065>\
**Category:** micro:bit\
**Created:** [August 9, 2020, 9:24pm UTC](https://forum.makecode.com/t/i-need-help-optimising-my-code-or-another-solution/3065 "2020-08-09T21:24:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![port-portal](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@port-portal](https://forum.makecode.com/u/port-portal)\
**Post date:** [August 9, 2020, 9:24pm UTC](https://forum.makecode.com/t/i-need-help-optimising-my-code-or-another-solution/3065/1 "2020-08-09T21:24:56Z")

</div>

I have made a menu with some games on it and a calculator but the calculator instead of displaying the number it flashes it at regular intervals. I think it might be to do with the amount of code but I don’t know how to fix it.  
Please help

> **[Space Invaders 1.4](https://makecode.microbit.org/77198-52861-41478-70414)**
>
> Made with ❤️ in Microsoft MakeCode for micro:bit.

Ps, it is the third item in the menu (game\_state 3 and 3.5)
