The agreement has 17-year-old Andrew Looper pleading guilty to second degree home invasion which is a felony