I've also popped a few neurons trying to decipher the debug output from 3D arrays.
Ashley maybe it would make things a little bit more readable if the z layers were bracketed?
Fengist's x=0 would then look like:
(370,-1,-1,-1),(222,-1,-1,-1),(913,-1,-1,-1)...
...which is a lot easier to parse.