Moves tasks between lists correctly