Created game loop to play game on Node