tic tac toe and snake and towers of Hanoi