Encoder WORKING (or winning at least)