Implemented simple AI to play the game