Update main.cpp

updated typo on line 1009 col from "if(Height" to "if(nHeight"