Wait a second, that confuses me. Are you saying that intead of
...
}
//The ball drawing functions
void DrawBall(int i,int r){
...
I'm supposed to have
...
//The ball drawing functions
void DrawBall(int i,int r){
...
} //The very end
or what do you mean?
Besides, the problem starts right here:
//The ball and chain functions
void BallChain(){
//Check whether the ball should still be going
if((StoreInput == 1 && Link->InputA) || (StoreInput == 2 && Link->InputB)){
//Draw the ball and chain
for(int i=1;i<=4;i++) DrawBall(BallChainCounter,i*8);