Refactored fen into it's own class