Completed minimax to start testing functionality