Improved collision detection between tiles and hitboxes.