Added shopt -s checkwins and removed kill