Move game logic into a separate set of files.