adding extra functionality to pong game