AI

Added ai and the game is ready to play.