Update main.js

add/improve some physics, to boxes and avatar