Slightly working EventManager class

More edits needed to EventManager but almost working