added gameloop and draw