sending some functions to complete the the game in jslang