Basic Tic Tac Toe, written in JS