ok, seperated game logic into attank.js file. gonna try rationalising the other files into something more reusable.