finding appropriate place for building (first attempt to create AI)