Adds test for AI's check of play legality.
Closes #157. See issue messages for details.