Update main.cpp
Merge pull request #6 from autochthonexalt/switch-state

Update main.cpp