Added the collisionDirection function

It will axis align collision direction based on intersecting v with the
sides of the tile.