added spritesheet processor and the main gameloop