Made a good logic for computer player