Modification about GameState update
correcting jshint error (duplicate var statement)
correcting a lot of yuidoc warnings