Fixed extensions call, added end game routine