Uncomment socket.write(matrix)