Compute new state + score