Added some logic to GameManager.cs