added mechanism for saving entities, so that there is no temptation to add fields to the game class