fixed race condition by using 2 queues
added sub Task types for Ping and Pong