Add array to X and Y; also set Y as integers