refactor move_for_computer()

I have refactored the three switch statements in move_for_computer()
into one switch statement.  I saved the original function in
original-ai.js.