Hopefully reuploaded main.lua

- Player got proper collision detection and resolution
- Sorry, but there is a bunch of prints to give an overview of the
massive memory usage