updated index() in Players.php