minimax kinda works now :D next step: alpha-beta pruning