Calculate x based on puzzlePieceWidth