Added code for pre-altering when a tie is inevitable