Wrote rest of the game