fix game saving and clean up syntax