Redesigned event handling system.

Added item stack feature