Code for the Rubber Band game