added Detector.js to game.js- move to own file