Designing Optimal Protocols for Resource Allocation Games