first pass at door finding alg