puzzle js for loop and action code added