toggleReplay method takes into account whether match has ended.