Better scoring function

using squares, but still needs to be more fine grained