refactoring the room connection code to be able to handle eventual board connections