Move game logic into library.