added a missing self. prefix before a Ball variable