implement game logic
update client