starting work on minimax