setting up loop in mypinpong