Added fundamental game logic for communication between server and client and drawing the game board.