Fix bug of getting the num of rows and num of cols 
add MapManager