moved addTwoArrays from Piece to AraysHelper