Added game over and pause modes.