adding ball in main.cpp