refactoring gameover