removed old functions

deleted old moveByOne and valiudMove (i have to get out of the habit of
commenting old functions and just use git).
added comments

commented and beautified code