Separate board class from main logic