Completely redid quadrangle selection.

TODO:
-make it stop ignoring pools so often
-make selection from candidates more accurate
-complete orientation detection