Created a new game loop. There is a BUG to fix