Adding encoding/decoding of the Planning genes