multiplayer lobby framework and starting to move game logic to server