my solution with better bfs (still buggy)
better escaping from danger fields