[top coder] avoid roads