Fixed linting issues identified from Grunt/Travis

Of note: review `src/game.js` and associated changes. This was the most extreme lint error, and can be considered to be a stylistic choice. Using a ternary is usually reserved to creating a conditional value, not a conditional action. That should be reserved to control statements only.