check game over, update scores and leaderboard