public void getRules(){
		try {
            String messageFromServer = null;
            out.println(PLAYER_NAME_PREFIX+";"+me.getName());
            while(me.getSymbol() == null || boardSize == 0 || winningSymNr == 0){     
                messageFromServer = getMessageFromServer();
                if(messageFromServer != null)
                proccesMessage(messageFromServer);  
            }
            board = new Board(boardSize);
            window.drawBoard(board.drawBoard());
            messageFromServer = null;
            while(!YOUR_TURN.equals(messageFromServer)|| !WAITING_FOR.regionMatches(true, 0, messageFromServer, 0, 3)){
                    messageFromServer = getMessageFromServer();
                    if(messageFromServer!=null)
                        playTheGame(messageFromServer);
            }
        } catch (IOException ex) {
                Logger.getLogger(Client.class.getName()).log(Level.SEVERE, null, ex);
            }
	}