Move path lgoic to world.py