(Algorithms1, week4) Bug fixes in Board.java