Added some test code for multiple player support