Corrected spelling in function restricted movement
Added comment line. Added ">=" to code instead of just ">"