chalkX[ii]=chalkX[ii]-chalkXSpeed;//making the chalk move across the screen from right to left
if(chalkX[ii]<0)
{
chalkPassed++;
chalkX[ii]=canvasWidth+(ii*200);
if(ii==chalkNum-1)
chalkXSpeed+=2;
chalkY[ii]=(int)Math.floor(Math.random()*((maxplayerY+player[0].getHeight())-chalk[0].getHeight()))+chalk[0].getHeight();//making the chalk appear at random heights