stop raycast out of y array