Moved the predictionArray declaration to the viewDidLoad action because it is only called once in the application.