add get board function to logic