fixed rotation-into-piece bug
Merge branch 'master' into gh-pages