New file: on_collide.lua

Moved whole "on_collide" function to own file "on_collide.lua"