I'm not sure if I made ray casting better or worse