Change fen calculation

Get the max from ruby's features.