// Add error events to mostRecentErrors for recording.
if (event instanceof ServerIllegalMoveEvent) {
ServerIllegalMoveEvent sEvent = (ServerIllegalMoveEvent)event;
mostRecentErrors.put(sEvent.getRole(), "IL " + sEvent.getMove());
} else if (event instanceof ServerTimeoutEvent) {
ServerTimeoutEvent sEvent = (ServerTimeoutEvent)event;
mostRecentErrors.put(sEvent.getRole(), "TO");
} else if (event instanceof ServerConnectionErrorEvent) {
ServerConnectionErrorEvent sEvent = (ServerConnectionErrorEvent)event;
mostRecentErrors.put(sEvent.getRole(), "CE");
}
}