Abstract game logic to new class