api: update game logic