added server code to game