Java exercise for visually and recursively solving a maze