Made board class work with arraylist