https://profilpelajar.com/en/Finite_State_Machine