debugging the move() function
Modified move() function. Keep debugging