uses UI and Board classes