Changed State ENUM into State machine, but clock in match doen't lowers

Signed-off-by: Lasconik <caillouxnicolas@gmail.com>