Added game restarting and game over conditions.