You can find the working code (completed after class) in the tictactoe branch of our repository; see https://bitbucket.org/luca_de_alfaro/web2py_start_2016/src/1c8a91ec3a2989ba23c500fe94279572c647e5f7/?at=tictactoeclass