Removed isAtEdge method