added a bool to see if there is a collision with the balls or not