fixed jumping bug, speed bug, curve-polygon collision detection (temp: it's still too slow)