changed binary structure to use Game class