fixed a bug in the computer move logic