added in ping pong ball functionality