updated ui, added logic for updating scores