added logic for computer player, which will never lose