Added some basic functions, and getOtherPositionDirection

First day!