create ball and main loop