Simpla java labyrinth solver