playing ping-pong with bash and dialog