made into an n by n array of js buttons instead of css