added a function to grab the closest room to a point (will you for deciding where to build corridors)