Add better Pipe selection checking, open the gate GUI only if it has been clicked