A quick solution to this http://dojopuzzles.com/problemas/exibe/um-mundo-pequeno/