added updating functionalities in contestManager.Need to handle time.