implemented world.cpp and fixed location.h