added AI

changed the AI from random moves to an AI that looks 3 moves ahead -
this added a "Tile[][] grid" parameter to several functions, perhaps
these should be moved into a Grid class