main.cpp player system open