Adding Tie end match condition and a reset command