solve maze w/ recursive function