Rewritten collision detector. Feet still get stuck when jumping against
a wall.