for (int i = 0; i < x; i++)
{
EditorGUILayout.BeginHorizontal();
for (int j = 0; j < y; j++)
{
top[i, j] = EditorGUILayout.Toggle(top[i, j]);
}
GUILayout.FlexibleSpace();
EditorGUILayout.EndHorizontal();
}