fixed duplication in human_player code