for (PlayerModel playerModel : soccerMatch.getPlayerSet()) {
if (playerModel.getPlayerName().equals("frank")) {
matchHandler.handle(new AssignYellowCardCommand(matchId, playerModel));
}
if (playerModel.getPlayerName().equals("piet")) { // assign two yellow cards
matchHandler.handle(new AssignYellowCardCommand(matchId, playerModel));
matchHandler.handle(new AssignYellowCardCommand(matchId, playerModel));
}
if (playerModel.getPlayerName().equals("henk")) {
matchHandler.handle(new AssignRedCardCommand(matchId, playerModel));
}