fixing bug in move(tokens)