simpleGame.js - copied from aharrisbooks.net