Helper function that returns the direction from a source to a target position.
For example: directionFromPos({x:1, y:1}, {{x:2, y:1}}) = Direction.RIGHT
directionFromPos({x:1, y:1}, {{x:2, y:1}}) = Direction.RIGHT
Helper function that returns the direction from a source to a target position.
For example:
directionFromPos({x:1, y:1}, {{x:2, y:1}}) = Direction.RIGHT