fixed imports
refactored Maze#move