Labyrinth Question about path to initial position

Hi all,

So i am having some trouble with the Labyrinth puzzle and i don’t know what is wrong. I used DFS to reach the control center for the first part of the puzzle. Once I am there I use A star to find the shortest path to the initial position. However,
when I print out the path, the CodinGame IDE does not accept the new path and instead just prints the reverse of the path I used to reach the control panel. Any ideas on what could be the issue ?

Make sure you are only printing one instruction per input loop, not all of them at once. That can mess up the game engine.
Otherwise, it sounds like an assignment or unintentional modification bug in your code.