implemented shadowcasting for a single octant