added separate game loop file