Added game logic for local game