Add competition

Fixes #13 with a simple check. Introduces #12 and pretty much solves the first part of #17