refactored the currentView matrix to be index instead in prep for asst4