Using API for calculating flash pong response