Rewrote game logic.