Added the infrastructure to facilitate save and loading games.