decided to use a 2d array and refactored code to reflect this