I followed griffpatchs maze generation tutorial but realized his maze is mainly one path with some small paths going in other directions. So I changed the code a bit and now its a little bit harder to get out of the maze because you can spend a long time going in circles.