Fixed polygon-polygon collision detection and fixed debug