The rules of Nicolas billiards