Separation between game logic and pygame.