ball position added as parameter in the setup method