refactor: optimize movementOnly function (Playground::moveRects)