Manchester City manager Manuel Pellegrini says 'the most important thing was to win' following his team's 3-2 victory over Everton.