update buttons, fixed a bug on playerTurn