added id's to players.
extracted function to get an item out of a list based on an id
using player.id and player.name instead of name directly troughout the app