Set ray dir to valid one for curr input, change grid isInside to a labelArray