Got the game logic to run alongside UI