Android port from a video poker assignment