isCurrentPlayer function