fix tests in boardgame.rb and refactor computer_ai method win_or_block. Fix sinatra app to take new ComputerAI class.