(Algorithms1, week4) Modified Board.java to reduce space usage