Moved poker related functions in a separate plugin file.