implemented a naive collision model between the two balls