added escape.cpp and map.h