new function find_gate() returns pixels to center
removed jesse's change
added gate_find control loop