Fixed bug in homeing code whereby it used the dud coordinate at the
end of an unfinished homeing move to start the next move.