added two queries for boards and made a board loop