Added method to get getAdjacent from multiply directions.
Added some unit test for it.