Code for implementing the manathan tourist in test.py, just adapt the data if needed