move function

fix diagonals