Wrote the initialization method for Board class.