Moving diagonally between walls is possible, if you can draw a straight line between the centre of your space and the centre of the space your teleport would move you to. If a letter is present in more than one word, i.e N in Sun and Moon, you can move diagonally, or even not move at all, depending on which way those words are equipped.