Update Main.cs

Added function to check each possible solution
Merge pull request #1 from manzha/patch-1

Update Main.cs