Wrote a function that calculates the valid moves of a Board; it's in Node.java.