complete local game logic