Moved StateChanged() to base class

Moved StateChanged() from PlainBlock and from DigitBlock to Block,
because they were duplicates