I think its because you used if a=a then move -1 Can't remember the string name, sorry. it looks like you inverted the variable.