Fixed warnings for Board.java.