refactor, fixed group anchoring bug
refactored movement clamping code to be a lot better