Begun adding canvas layering for better rendering
Separated code from game.js
Fixed bug where canvas layering would not work properly