Tags: misc 

Rating:

Solution:
1. pwntools to receive data
2. Breadth First Search algorithm which is explained here: http://bryukh.com/labyrinth-algorithms to find a way.
3. The list was in reversed order and the format was a bit more complicated to parse. See tower.py in linked git repo for solution!

Original writeup (https://github.com/coldBug/ctfwriteups/tree/master/polictf2017).