refactored the game logic into separate files