Update connectNstatic.cpp

done i think, i checked a few winning conditions. Please check it for me before submitting