created animations and simplified actor construct

as title says, also added window event handler, and a close button
functionality, but causes crash when something destroys