That shouldnt be hard if you use a MySQL table to store the 'currently open games'. Every client reads the list of game servers available , and connects to a chosen one. When a client connects , you can do anything you like , eighter start a game or put him in a 'room' with the others.