score update & tweaked to solve contest2