Minigame with Arduino controller in ActionScript