Lecture update logic (automatic phase switching)

TODO: implement winner detection logic