added resolution support, made the animation on thier own game loop, made an indipendant gameloop object