add lookahead functionality and basic scoring