A ruby solution to the classic problem of the rovers landing on mars