BFS works but slow as fuck

took at least 10 min to solve medium maze