added player class anc cpu logic