Mazesolver.java - Caspar