updated Board.java