Some example code for a rudimentary form of collision with a polygonal map using bounding walls