added more functionality to pong