public void checkCollision() throws Exception{


        Rectangle rCharacter = new Rectangle(WIDTH/2-32+12, HEIGHT/2-32+24, 64-24, 64+6);
        
        boolean check = true;

        for (int i=0;i<stoneList.size();i++) {
            Stone stone = (Stone) stoneList.get(i);
            Rectangle rStone = stone.getNextRectangle();
            if (rStone.intersects(rCharacter)) {
                check = false;
                break;
            }
        }

        if(check == true){
            moveAllComponents();
        }
    }