Added basic scoring function. Still need to write diagonal checking code.