Fixed bug with internal movement logic; clearer debugging output