1) added event manager

2) added actor moved event (WIP)
3) cleaned up code