Riyad Mahrez scored what turned out to be the decisive goal in Leicester’s 2-1 win away against West Ham.