Changed the array from int to byte to save memory, also used the fill function instead of initializing a new array