Implementation of Board.java