move turn variable to click function (end game on win)