adding ping pong turn keeper function