Added functions for evaluating pieces moving and capturing.