Added a time manager that allocates time based on an estimation of how many moves are left in the game.