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));
}
}
matchHandler.handle(new EndMatchCommand(matchId));