Added half of game over functionality and tests.