error game and structures.js, repaired