new game loop and click event