refactory poker GUI