pre game code