"Я заблудился" means "I've got lost in the forest, an unknown neibourhood etc.

You should've said "Я запутался" instead.