Fixes a bug with border tile calculations. Adds logic to prevent line animations from backtracking.