Fixed save gamedata to adhere to new API