JMP MarioTouch : JMP MarioTouch : JMP MarioTouch : JMP Sprite : JMP Sprite : JMP Return : JMP Return

MarioTouch:
	LDA #$01
	STA $140C
	bra Return

Sprite:
	
	LDA $1602,x
	BNE Return
	LDA $140C
	BNE ReturnButStop
	INC $1602,x
	LDA $7F9A82
	BNE AddOne
	INC
	STA $7F9A82	;mario finished one place later
	RTL
AddOne:
	CMP #$03
	BEQ DeadLast
	INC
	INC
	STA $7F9A82

ReturnButStop:
	LDA #$01
	STA $1602,x

Return:
	RTL
DeadLast:
	LDA #$05
	STA $7F9A82
	BRA Return