thinking ahead score function added