public void onEvent(Event event) {
        if (event instanceof ScannedRobotEvent) {
            onScannedRobot((ScannedRobotEvent) event);
        } else if (event instanceof RobotDeathEvent) {
            onRobotDeath((RobotDeathEvent) event);
        }
    }