.refactoring : Ball replaced by an enum instead of a class