Update PlayPingPong.java

moved formatting of output string to thread safe method. & fix logic bug.