Fixed a bug where pressing return does not show up the endPhase text