Updated sendPong() to use API instead of reverse-engineered algorithm