preliminary attempt to code patience game in Spark