public void trackDiscovery(){
	
	//x and y coordinates of player
	int playerX = logicHandler.getPlayerPosition()[0];
	int playerY = logicHandler.getPlayerPosition()[1];

	//records the current x,y, position
	discoveredArea[playerX][playerY] = 1;
	//records all areas 2 spaces around the current position
	for(int i = -2; i <= 2; i++){
	    for(int j = -2; j <= 2; j++){
		//Ensures it will not access out of bounds array exception
		if( ! (playerX+i < 0 ||
		       playerX+i >= canvas.getGridWidth()-1 ||
		       playerY+j < 0 ||
		       playerY+j >= canvas.getGridHeight()-1   ) ){
		            //If the specified area has not been discovered (i.e. != 1)
		            if(discoveredArea[playerX+i][playerY+j] != 1){
				discoveredArea[playerX+i][playerY+j] = 1;
			    }
		}//if
	    }//for(j)
	}//for(i)
    }