implementation of method move

class Map:
-added implementation of method move