added getPlayers to code action