The logic that confirms and executes an additional play is duplicated twice. This might be better done outside the `play` function itself.