added board class to handle squares