Stash Solving - C#