Rather than making this a separate function, I'd just put this code in `playpause` and have `play` call `playpause`.