game loop added