Full working competition logic