Added isDeadEndOrCorner to World.cs