much to his surprise , king lars had accepted grendel the troll as his subject and granted him the right to live in the cave beneath the lake in return for fealty and obedience to the king and the laws of the realm .