Tournament functionality

Added tournament functionality for testing.