added working minimax, TODO alpha beta pruning
added working minimax. TODO: alpha beta