@Override
    public void displayBoard(Board board) {
        String line = "--------------------------------------------------------";
        System.out.println(line);
        for (int i = 0; i < Game.NUM_ROWS; i++) {
            for (int j = 0; j < Game.NUM_COLUMNS; j++) {
                Square square = board.getSquare(i, j);
                if (square.isOccupied())   {
                    Piece piece = square.getOccupier();
                    if (piece.getColor() == color) {
                        int value = ((FriendlyPiece)piece).getValue();
                        if (value < 0 || value > 9) {
                            System.out.print(value + " | ");
                        } else {
                            System.out.print(value + "  | ");
                        }
                    } else {
                        System.out.print("-- | ");
                    }
                } else {
                    System.out.print(0 + "  | ");
                }
            }

            System.out.printf("%n%s%n", line);
        }
    }