validates piece positions against pattern