Isolating game logic