comments and IF statement

added IF statement to see if anything was available to move;
added more comments