Accuracy output matches DAn's code now which means I think it's right