test x and y variables
function makes arrays from both sides of the square along a diaganol