fixed some errors in main and specified the correct value for movements