change variable to double array[3][3], add function to clear value and set to 0