Improved player collision detection.