check that maze is drawn before trying to solve it!