Added JS file for game logic