extract some constants to give meaning
remove redundant scoring code
a piece pool for the available pieces