Update battleinterface.py

changed distance calculations