*changed ball and thread creation to loop. *Added commandline input