public Checker(int team){
        this.team = team;
        if(team == 1) {
            setImage(new GreenfootImage("Mario.png"));
        } else if (team == 2) {
            setImage(new GreenfootImage("Wario.png"));
        }
    }