create onClick and onDivClick function to alternate between  x/o turns