adds event listeners
Merge https://github.com/albertaw/tictactoe