Added basic structure for init, queue, gameloop functions