finished up the solve.sh script