// solution to lab 2, use as template for lab 3 import java.awt.*; import java.awt.event.*; class studentcode extends mazedfs { public studentcode(int bh0, int mh0, int mw0) // don't change constructor { super(bh0,mh0,mw0); } // you now need to **override** the following functions: // public void digout(int y, int x) -- from lab 2 public void digout(int y, int x) { M[y][x] = 1; drawblock(y,x); delay(dtime); // now look in each direction, N,S, E, W int[] DX = {0,0,1,-1}; int[] DY = {-1,1,0,0}; // scramble vectors for random effect for(int i=0;i=0 && nx=0 && ny