Preliminary collision handling works. But rh needs an overhaul what with the messy console and error reporting functions.