@Override
    public void onEvent(Event event) {
        if (event instanceof ScannedRobotEvent) {
            onScannedRobot((ScannedRobotEvent) event);
        }else if (event instanceof HitWallEvent){
            onHitWall((HitWallEvent) event);
        }
    }