Added game initialization function which sets mode vars.