ValidateMap added

contains two functions validateEntrace and validateExit