code moved to new function onGameOver instead of start()
dirty hack for gameover bug
Moving average is now working