Also I notice that you are setting highscore both every second and on every tick. You should do one or the other. The every second would be better unless you need it sooner in which case you can do every 0.5 seconds.