added function for determining the kind of transition between fields, returns a certain case key and could be used to keep track of its position when not going in a straight line... potatoe because wall of text