working minimax and toy game