Added an event dispatcher class for objects to listen to sfml events