Large refactor of raycasting routines, restructuring of how queues and lists handle sizes. Debugging uninitialised variables in raycasting.