Created logic controller to manage board
Cleaned up logic