changed way we do state variables and updated isSleeping stuff for constructor