Added comments for future optimizations.
Renamed indexes to lines.
Added toString to player for simple string concatenation.
Rewrote to use different algorithm.
Moved back to grid after peformance measurement.
Optimized computer AI using alpha-beta pruning.
Clarified AI with some cleanup.