Fixing selectedPlayer bug