Adding game loop script