moved piece creation to a different file