public void setStage() {  //Initial set up before any level starts
        //System.out.println("size=" + brickList.size());
        brickList = null;
        brickList = new ArrayList<Brick>();
        powerList.clear();

        for (int i = 0; i < stage.length; i++) {
            //System.out.println(stage[i][0]);

            if (stage[i][0] == currentLevel) {
                Brick b = new Brick(stage[i][1], stage[i][2], stage[i][3]);  //create brick
                //System.out.println("yes");
                brickList.add(b); //add brick to list
            } else {
                if (stage[i][0] > currentLevel) {
                    break;
                }
            }
        }
        //System.out.println("size=" + brickList.size());

        //below code assignes each power twice to random bricks, total 10 powers.

        Random randnum = new Random();
        for (int i = 0; i < 2; i++) {
            brickList.get(randnum.nextInt(brickList.size())).setPower(1); //super ball
        }
        for (int i = 0; i < 2; i++) {
            brickList.get(randnum.nextInt(brickList.size())).setPower(2); //big puddle
        }
        for (int i = 0; i < 2; i++) {
            brickList.get(randnum.nextInt(brickList.size())).setPower(3); //small puddle
        }
        for (int i = 0; i < 2; i++) {
            brickList.get(randnum.nextInt(brickList.size())).setPower(4);  //bomb
        }
        for (int i = 0; i < 2; i++) {
            brickList.get(randnum.nextInt(brickList.size())).setPower(5);  //weapon
        }

    }