made some code look prettier. put trying to place block logic into a function and put it into mechanics.js so it looks neater. also added generating a new random block each time.
changed material and fixed inner planes