Find the way out of a randomly generated maze before the time runs out.