refactor and add bin to run game