Starting Queens' expert system implementation
Optimizing for loops