Use const ints for direction.

Previously, the direction argument to 'CalculateAdjacent()' was a string.  Now
it's an type Direction (int), with consts to provide those ints.