Create gameManager.cpp

All the functions for the game manager are defined here.