Towers of Hanoi game for the browser using jQuery