Added conversion function to ParserAgent to convert from grid to a
single array for input into neural network