Improved state system. Bugfix.

Generalized code for future updates.
Added blocks drop when controller is broken.