Replaced int arrays with a single object array

No longer has separate arrays for input, errors, solution.