Added left and right block movements.
Corrected swap