Refactor a create-deployed-game fn