So basically I found this solution regarding overloaded operator[] for 2D arrays. This is the whole code so far:
#include #include