add display_result method and is_full method