Moved test code to the GameManager