I've implemented the method getFenEquivalent() in the class Position.