beginning logic for boards and pieces