Implemented score keeping and end of game logic.