Fix a problem with the writing of constructor and added move to Ball class