Fix AI so that it places pieces where it increases it's chance of
winning first before blocking
Refactor duplicated code to make it dry