My take on the mars rover problem, implemented in C#