Update Main.cpp

Bugs Resolved