Attempting to create a 2 player terminal based chess program in C++ from scratch