makes a maze and solves it