Factor out common tiles movement code.