Python - Moverse por un mapa ¿Esta bien este algoritmo?

Filtrado por el usuario: JM
<<>>
Filtrado por el usuario 'JM' (Eliminar fitro)
 
Vista: