simple shadow filter.

seperate class StateManager.