getting close. gonna factor the code a little and fix the branches to look like jasons logic