How did mohammed become leader of Morocco?