Made slight changes to simple-ai so it updates pieces before trying to pick a random move and after.