game mechanics
refactored board class