Permanent fix Assignment next and assignment changing.

Refactored event system.
Merge branch 'master' of https://github.com/mvdenk/JavaProgrammingContest