Nampalys Mendy has played every Premier League match for Leicester this season but admits he considered leaving the club when he was struggling to get games.