seperated board functionallity into different class