FIXED CRASH!

Needed some reengineering, but finally crash is fixed. There are some
bug with responding to collisions, but should be able to fix there
myself and collisions works perfectly.