No need for fancy maps, a matrix is enough.