C++ implementation of connect 4