Made checkCollisionWithItems 1000x faster.