workin lcd with state machoine