Fixed bug in calculating bottom right door