Hm ! That is really a nice raycast you wrote here !

If I could understand code like this, at some point I wanted to generate a 3D Dungeon game of sorts.

This sort of incredible programming still eludes me. :)