Update ping/pong function with latest variant from swf code
Brute force approach from https://gist.github.com/adammw/7f192694c3ed0b13f1f9
Merge pull request #56 from rob20812/master

Update ping/pong function with latest variant from swf code