Update main.cpp

Fixed 'GLOBAL VARIABLES'