@Override
    public void displayBoard(Board board) {
        //for testing only. replace with more sophisticated method.
        System.out.println("done initailizing? " + isInitailized);

        System.out.println("Initialization complete");
        for (int i = 0; i < Game.NUM_ROWS; i++) {
            for (int j = 0; j < Game.NUM_COLUMNS; j++) {
                Square squareModel = board.getSquare(i, j);
                GameSquare squareView = squarePnls[i][j];
                if (!squareModel.isActive()) {
                    squareView.isActive = false;
                    squareView.setBackground(Color.lightGray);

                } else if (squareModel.isOccupied()) {
                    Piece piece = squareModel.getOccupier();
                    if (piece.getColor() == color) {
                        squareView.setColor(this.color);
                    }
                    squareView.setPiece(squareModel.getOccupier());
                } else {
                    squareView.lblPiece.setVisible(false);
                }
            }
        }
        revalidate();
        repaint();
    }