corrected mistakes in my code... Tested it vigorously and it works most places. Rooms are not convergent. Example code is in main and as a comment in the bottom of doordetector.cpp