game board buttons removed, onclick added to table

Both pathways of this if call makeMove so this can come out of the if statement, and the if can then be simplified as:
playerTurn = playerTurn === 1 ? 2 : 1