After talking with Ben i have changed a bit to my program and instead of having a ball i am going to have a white line with a black square in it where the ball would be, so the white line acts in the same way as the ball but spreads across the whole screen.
I have changed some stuff from the original program which i have got. i have made it 500x500 and there is only one white ball on the screen