Main loop calls updatePreferred() and optimisticUnchoke()

It's pretty hacky. I will likely change it later.