Various improvements to main.js

-Removed tons of extra code
- Also working on creating game over logic