click to flap. avoid pipes and the edge.
a bit of code learned from a youtube tutorial uploaded by @griffpatch. the rest by me.