Added flag tracking if pieces have been moved