Created a constructor for board