main.lua complete

Finished on_collide, should work, hopefully.