check if given maze is solvable