Fix unsigned char issue for ball[]