AI: ignore ceilings when finding the cursor