working on server side part of the game