working (logic errors)

There are some logic errors I need to figure out