public BoardModel waitForBoardInfo() throws IOException {
        while (true) {
            String[] tokens = this.inStream.readLine().split(" ");
            if (tokens[0].equals("BOARD")) {
                int width = Integer.parseInt(tokens[1]);
                int height = Integer.parseInt(tokens[2]);
                board = new BoardModel(width, height);
                return board;
            }
        }
    }