implemented game serializing and progress saving