Working on deciphering 'move' function