Add comments, and use procedures to make the game more modular