Moved logic into gameLogic.js.  Cleaned up stuff.  Fixed image issues bug #1.