added a depth index to the grid pointer in the world class
made changes so that object movement is made using the 3d array indices