Need help compressing an RPS system - C#