MIT assignment 4 Ray casting, finish coding, need debugging