update block movement

fixed bugs including can’t move, splitting and going out of grid
Merge branch 'master' of https://github.com/chrisplyn/cs246