public static void onEvent(Event event) {
        if (event instanceof ScannedRobotEvent) {
            onScannedRobot((ScannedRobotEvent) event); //send scan event to it's method
        } else if (event instanceof RobotDeathEvent) {
            onRobotDeath((RobotDeathEvent) event); //send death event to it's method
        }
    }