Changed back to non-continuous version of the planarity test
Added extra test for uniform grid. Found and fixed the bug it contained