Fixing syntax errors for ball