add break to get out of play loop