In 1809, Napoleon I of France arrived at Schönbrunn Palace to play the Turk. Before the game, the Turk, with Johann Baptist Allgaier hidden inside, saluted Napoleon. In a surprise move, Napoleon took the first turn instead of allowing the Turk to make the first move. When Napoleon attempted an illegal move, the Turk put the piece back in its original spot and continued the game. After a second illegal move the Turk took the piece from the board. When Napoleon tried a third illegal move the Turk swept its arm across, knocking all the pieces off the board. Napoleon was amused, and then played a real game with the machine. After 19 moves Napoleon pushed over his king to show that he knew he could not win, and was giving up. 