Freecell game with only three Free cells. Try to move all cards to the foundations.…