pieceFactory holds int of nextPiece