[LibGDX] Box2DMapObjectParser detect a collision to finish game

hello
I’m using Box2DMapObjectParser to create a object Layer in a tiled map where i create line shaped objects to represent borders.
the problem is i do not know how to end the stage .
like f the player object hits the final line the game should end … etc.

any one can help me please ?