Separated game logic out of html and into a separate js file!