function piecePlacing done.