Made the block movement automatic