Reworked game end to make sure gameover called once