worked on gameloop
worked on gameloop