refactoring world to have agent location.