Huge fix to listpos

- actually records the correct positions for diagonal and horizontal directions