Rank 16 in finals of Russian Ai Cup 2017 http://russianaicup.ru/ Many thanks to kswaldemar for rewindviewer https://github.com/kswaldemar/rewind-viewer
Based on potential fields and bunch of ifs.
Source code and repository is very dirty : D
On mac os you can run ./rewindviewer.sh for external nice visualisation, for other platforms you should build binary yourself.