added getting for nearest free coord