bringing the json parse function into game.js