I\'m trying to make a program to divide the map of an old GBA game into 16x16 tiles, save each tile, and then compare the raw image data of each grabbed tile to another list
The first thing that comes to mind is that JPG is a lossy format that shouldn't be used for precision pixel graphics, especially at 16x16 resolutions. You shouldn't expect to get the exact same RGB values that you originally wrote to the JPG when you read it back.
I've successfully used PNG for reference images in unit tests, to compare against generated BufferedImage.