Rewrite computer_ai

Start working on computer ai to complete the game.