[#49] edit update function
[#49] change type of currentPlayer variable