configure package.json for npm test and covered game.js with tests