fixed bug in pingpong