Added arrayChecker because apparently Arrays.equals doesn't work