added algorithm to position rooms on map