public Brick newBrick(Type type){
        if (type == null)
            return null;
        switch (type){
            case POWERUP:
                return new PowerupBrick();
            case ONE_HIT:
                return new OneHitBrick();
            case TWO_HIT:
                return new TwoHitBrick();
            case THREE_HIT:
                return new ThreeHitBrick();
            case UNCHANGEABLE:
                return new IndesctructibleBrick();
            case EMPTY:
                return null;
            default:
                return null;
        }
    }