Code for comparing behavioural and decoding responses