set up code structure for game