collision detection for entities done