Raycast added to AI