switch(r, 1, 10, 2, 8, 3, 6, 4, 5, 5, 4, 6, 3, 7, 2, 8, 1) will work for the points for playing box. For the buy-in, you can put a '2' in that box. Another one that should work for points for playing is n-r+1+switch(r,1, 2, 2, 1). Either way should work, and I'm even sure there's going to be other ways to accomplish the same thing.