"He" is the subject of the sentence; "struggle" is the main verb.
"up to the cliff" is a prepositional phrase that modifies the verb,acting as an adverb."cliff" is the object of the preposition.
"towards the light" is another prepositional phrase that,together with "up to the cliff",modifies the verb,"light" is the object of the preposition.