added horizontal ray casting
Added horizontal ray casting