added inputs for phases and players