change distance etc to var
reset cp on idle
clear conflict of keys