Reordered sequence of compiling events because a gameID needs to be assigned prior to compiling other parts.