send an error if the 'action' is unknown
fix the use of underscore's remove function
implement a minimal matchmaking system