Added minimax algorithm, and improved documentation here and there