added comments and a check that all pieces were on board