added AI

Added AI that looks 3 moves ahead