Started coding an evaluation function