added calculate player turn method