hooked up game logic