added some client side game logic