Work with the doMove function

It isn't working properly. I had the doMove() work only once, after that
I haven't gotten it to do anything. I'm not sure if it is my code or if
it is the doMove() function that isn't working properly.