add move method and rewrite __init__ of the Maze