the final version of main.cpp with robin round finished