working with all logic client side - now adding game loop on the server