CheckGameOver and dispose frame