added computer play loop