private void setCharacterImage(String characterDirection, String teamCode) {
    if(teamCode.equals("r")) {
        if(characterDirection.equals("n")){ character=rmlnorth;}
        else if(characterDirection.equals("e")){character = rmleast;}
        else if(characterDirection.equals("w")){character = rmlwest;}
        else{character = rmlsouth;}
    }
    else {
        if(characterDirection.equals("n")){ character=cmlnorth;}
        else if(characterDirection.equals("e")){character = cmleast;}
        else if(characterDirection.equals("w")){character = cmlwest;}
        else{character = cmlsouth;}
    }
}