Found and fixed a bug where the matrix code was cheating