ADDED bug summary
FIXED piece type identification
FIXED functionVal evaluation
CHANGED to random and AI for testing