Added FEN calculating method