Added getNode method that accepts a node id as parameter.
Made private methods work with NodeImpl and created a move method.
Moved position of the getSwapDirection method to be under the getSwaps method