Implemented a 2d array system