Creating GameManager that controls synchronization of the threads and the temporization.