fixed gameover and win at the same time