check piece prints out error if incorrect