Sprite glitch fix
Created State which is used for state machine