public void updateBullets()
    {
        for(int i = 0; i < 100; i++)
        {
            if(bulletX[i] >= 800 && bulletX[i] <= 0 && bulletY[i] >= 0 && bulletY[i] <= 700)
            {
                bulletX[i] += bulletXdirection[i];
                bulletY[i] += bulletYdirection[i];
            }
            bullets[i] = new Rectangle(bulletX[i], bulletY[i], 10, 5);
        }
    }