Creating the Player Context in C++