raycasting working, no exceptions